<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_student_read.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/json.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/city.js?1.2"></script>
<script src="${staticServer}/inc/js/infopad.js"></script>
<script src="${staticServer}/inc/js/htmlfilter.js"></script>
<script src="${staticServer}/inc/js/model_resp.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/consultants/consultant_client_quest.js?1.4"></script>
<script src="${staticServer}/js/web/consultant_client_state.js?1.4"></script>
<script src="${staticServer}/js/web/consultant_stuupdate_func.js?1.9"></script>
<script src="${staticServer}/js/web/consultant_client_first.js?3.0"></script>
<script src="${staticServer}/js/web/consultant_client_check.js?1.5"></script>


<script>
var contextPath='${contextPath}';

$(function(){
	init_city( "province", "city","${client.province}","${client.city}");
	
	$("#studentlst").children(".students:last").next().remove();
	$("#source").val("<#if client??>${client.source}</#if>");
	
	$("#province").val("<#if client??>${client.province}</#if>");
	$("#city").val("<#if client??>${client.city}</#if>");
})
function getPic(){
    window.open($('#allUrl')[0].src);
}

function quest_add_phone( tar, name, url )
{
	tar.find( "> :not(p)" ).remove();
	var i = $( "#allPhone" ).find("p").length;
	var h = '<p rel="QUEST_PHONE"><input id="phone'+i+'" name="phone" size="30" placeholder="电话号码" maxlength="15" />'+
				'&nbsp;&nbsp;关系：<input type="radio" value="爸爸" id="baba'+i+'" name="myrad'+i+'">爸爸'+
				'&nbsp;<input type="radio" value="妈妈" id="mama'+i+'" name="myrad'+i+'">妈妈'+
				'&nbsp;&nbsp;<input type="radio" value="其他" id="qita'+i+'" name="myrad'+i+'">其他'+
				'&nbsp;<input id="guanxi'+i+'" name="guanxi" size="20" placeholder="填写关系" maxlength="100" />'+
				'&nbsp;<input type="button" class="btn_cancel" title="删除"></p>';

	tar.append( h );

	var self = tar.find( "p:last" );
	self.find( ".btn_cancel" ).click( function()
	{
		$( this ).parent().remove();
	} );
}

$(function(){
	
	$( "#btnAddPhone" ).click( function()
	{
		quest_add_phone( $( "#allPhone" ), "", "" );
	} );
})

function show_click(obj){
          var b = $(obj).siblings(".moneyid").css('display');
          if(b == 'none'){
              $(obj).siblings(".moneyid").show();
          }
        }
function hide_click(obj){
		var b = $(obj).siblings(".moneyid").css('display');
          if(b == 'none'){
              $(obj).siblings(".moneyid").hide();
          }else{
              $(obj).siblings(".moneyid").hide();
          }
		}

function btnShow(obj){
	 var b = $(obj).siblings('.caption').parent().parent().find('p:not(:first)').visible();
	 var s = $(obj).siblings('.caption').parent().parent().parent().children();
	 var h = $(obj).siblings('.caption').parent();
	 var f = $(obj).siblings('.caption').parent().parent().parent().children('li:last');
	 var l = $("#btnSearchTracking");
	 
	 var remind = $(obj).siblings('.caption').parent().parent().find('#remind').val();
	 var sh = null;
	 if(remind!=""){
		 sh = $(obj).siblings('.caption').parent().parent().parent().children().children();
		}else{
		 sh = $(obj).siblings('.caption').parent().parent().parent().children().children().not("#re");
		}	
	 if(b == false){
			 sh.show();
			 s.show();
			 l.hide();
	 }else{
		 	sh.hide();
		 	h.show();
		 	f.hide();
		 	l.show();
	 }
	}
$(function(){			
	var tbl = $( "#studentlst" ).find( "table" );
	tbl.find( "[rel='type_zx']" ).change( { tbl: tbl }, type_changed );
	tbl.find( "[rel='type_jt']" ).change( { tbl: tbl }, type_changed );
	tbl.find( "[rel='type_qn']" ).change( { tbl: tbl }, type_changed );
	
});	

var timeout = function(){
	var b = $(".odd1_row").visible();
	var a = $(".odd2_row").visible();
	if(b == false && a == false){
		$(".Zebra_DatePicker").css('z-index','9900');
		$(".odd1_row").show();
	}else if( b == true && a == false){
		$(".odd1_row").hide();
	}else{
		infopad.err( "“计划跟踪”和“已转交”不能同时设定。");
		$(".odd1_row").hide();
	}
}


var target = function(){
	var a = $(".odd2_row").visible();
	var b = $(".odd1_row").visible();
	if(a == false && b == false ){
		$(".odd2_row").show();
	}else if( b == true && a == false){
		$(".odd2_row").hide();
	}else{
		infopad.err( "“计划跟踪”和“已转交”不能同时设定。");
		$(".odd2_row").hide();	
	}
}

$("body").ready(function(){
/* $("#btnAddtrack").click( function(){
		var a = $("#addtrack").find("table").visible();
		if(a==false){
			$("#addtrack").find("table").show();
		}else{
			$("#addtrack").find("table").hide();
		}
	});  */
 });

$(function(){
	$("#username").keyup(function(){
		var nickname = $("#username").val();	
		$.post("${contextPath}/index/getUserByNickname.json", {
			"nickname" : nickname
		}, function(ms) {
			 if(ms.user!=null){
			 	var username = ms.user.username;
			 	$("#target").val(username);
		 }
			
		});
	});
});

$(function(){
	$("#laiYuanUrl").keyup(function(){
		var laiYuanUrl = $("#laiYuanUrl").val();
		if(laiYuanUrl.indexOf("sjbaid")>0 || laiYuanUrl.indexOf("bd")>0 || laiYuanUrl.indexOf("baidu")>0){
			$("#source").val("lyx063wpay9l");
		}else if(laiYuanUrl.indexOf("baidu.php")>0){
			$("#source").val("kzpctoxsbclx");
		}else if(laiYuanUrl.indexOf("#360")>0){
			$("#source").val("zgviq7wj9j0p");
		}else if(laiYuanUrl.indexOf("#shenma")>0){
			$("#source").val("F819056877F8");
		}else if(laiYuanUrl.indexOf("www.jingsi.org.cn")>0 || laiYuanUrl.indexOf("adhdchina.com")>0 ||
			laiYuanUrl.indexOf("zhuyili.org")>0 || laiYuanUrl.indexOf("zhuanzhuli.org")>0 ||
			laiYuanUrl.indexOf("jsxue.com")>0){
			$("#source").val("l0j9fitg3t94");
		}else if(laiYuanUrl=="无"){
			$('#source').attr("disabled",false);
		}else{
			$('#source').attr("disabled",true);
		}
		
	});
});    
</script>
<style type="text/css">
#statelist label {
	display: block;
	float: left;
	width: 120px;
	line-height:2.5;
}
</style>
</head>

<body>
<input type="hidden" value="${keyname}" id="keyname">

	<div id="home_link">
		<ul>
			<li>竞思教育网络办公系统 v2.0 beta</li>
			<li>&gt;</li>
			<li>咨询师</li>
			<li>&gt;</li>
			<li class="current">客户资料</li>
		</ul>
	</div>
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li>Ctrl+Enter 提交</li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table id="infotable">
			<tr class="fields">
				<th colspan="2" style="cursor: pointer;"><span rel="title_nickname">客户资料</span></th>
				</tr>
			<tr>
				<th width="25%">客户姓名/称呼
					<p class="caption">若不填写将显示为“匿名”</p>
				</th>
				<td width="75%"><input id="nickname" value="<#if client??>${client.nickname}</#if>" /></td>
			</tr>
			<tr>
				<th width="25%">无效资源
					<p class="caption">无效资源将不定期被清理</p>
				</th>
				<td width="75%"><input id="invalid" <#if client??><#if client.invalid=="1">checked="checked"</#if></#if> type="checkbox" /><label for="invalid">是否为无效资源</label>
					<p class="caption">为了节省服务器资源，一般标记为无效资源有可能会被不定期清理，标记时请慎重考虑。</p></td>
			</tr>
			<tr>
				<th>初始访问网址*</th>
				<td>
				<input id="laiYuanUrl" type="text" value="无" placeholder="请粘贴来源网址到此处，会自动识别渠道。" size="50"/>
				<p class="caption">请粘贴来源网址到此处，会自动识别渠道。如果没有来源网址，请填写：无</p>
			</tr>
			<tr>
				<th>客户来源渠道
				<!-- <a id="btnAddSource" class="add" title="点击添加新的客户来源渠道"></a> --></th>
				<td>
                <select id="source">
                <#if souList??>
                	<option value="">-- 请选择 --</option>
                	<#list souList as list>
                		<option value="${list.keyname}">${list.name}</option>
                	</#list>
                </#if>
                </select>
					<p class="caption">“百度推广”是收费竞价排名来源，“百度自然搜索”是免费的关键词搜索来源</p>
					<p class="caption">“商务通未知”是无轨迹或者无法判断来源，请在下方“网址”栏填写具体网址（必须）</p>
					</td>
			</tr>
			<tr rel="hide">
				<th>商桥网址</th>
				<td><input id="url" size="50" />
					<p class="caption">很重要，商桥中来源为具体网址的必须填写</p></td>
			</tr>
			<tr>
				<th>所在地</th>
				<td><select id="province">
				</select> <em class="caption">（省份）</em> 
				<select id="city">
				</select> <em class="caption">（城市）</em>
					<#if client.address!=null>
						</br><input id="address" size="40" value="${client.address}" readonly/><em class="caption">（所在地）</em> 
					</#if>
					<p class="caption">当地有中心的客户资源一定要正确选择省和市，这将直接影响业绩统计</p></td>
			</tr>
			<tr rel="hide">
				<th>客户类别<a id="btnAddCategory" class="add" title="点击添加新的客户类别"></a></th>
				<td>
                <select id="category">
                	<#if cateList??>
                	<option value="" selected="selected">-- 请选择 --</option>
                		<#list cateList as list>
                			<option value="${list.keyname}" <#if list.keyname == client.category>selected</#if> >${list.name}</option>
                		</#list>
                	</#if>
                </select>
				<em class="caption">（鼠标悬停在下拉列表选项之上，可查看选项说明。）</em></td>
			</tr>
			<tr>
				<th>问卷网址<a id="btnAddQuest" class="add" title="点击添加新问卷"></a>
					<p class="caption">问卷调查结果页地址（可多个）</p>
				</th>
				<td id="quest_list">
					<em class="caption">请点击左侧“+”添加新问卷地址</em>
					<#if client??>
					<#list client.queList as list>
					<p rel="QUEST_ITEM" class="rect left" style="margin:2px 0 2px 0;">
						<label> 名称：</label><input name="name" size="20" value="${list.name}">
						<#if list.url??>
							<#if list.url?contains("http://t.jingsiedu.com/t.php")>
								<label> 网址：</label><input name="url" size="50" value="${list.url?replace('http://t.jingsiedu.com/t.php','http://a.jingsiedu.com/jsweb/admin/ask.htm')}">
								<a href="${list.url?replace('http://t.jingsiedu.com/t.php','http://a.jingsiedu.com/jsweb/admin/ask.htm')}" target="_blank">[ 打开 ]</a>
							<#else>
								<label> 网址：</label><input name="url" size="50" value="${list.url}">
								<a href="${list.url}" target="_blank">[ 打开 ]</a>
							</#if>
						</#if>
						<input type="button" class="btn_cancel" title="删除">
					</p>
					</#list>
					</#if>
				</td>
			</tr>
			<tr rel="hide">
				<th>关键词</th>
				<td><input id="keyword" value="<#if client??>${client.keyword!''}</#if>" size="50" />
					<p class="caption">很重要，商桥中来源于搜索引擎的必须填写</p></td>
			</tr>
			<tr rel="hide">
				<th>具体地址（选填）
					<p class="caption">省市部分省略后的更详细地址</p>
				</th>
				<td><input id="address" value="<#if client??>${client.address!''}</#if>" size="50" /></td>
			</tr>
			<tr>
				<th>联系电话
					<a id="btnAddPhone" class="add" title="点击添加新问卷"></a>
					<p class="caption">可以填写手机号码、座机号码</p>
				</th>
				<td id="allPhone">
				<#if client.phlist??>
				<#list client.phlist as phlist>
				<p rel="QUEST_PHONE">
					<input id="phone"  name="phone" value="${phlist.phone}" size="30" maxlength="15" />
				<#if phlist.name=="爸爸" || phlist.name="妈妈">
					&nbsp;关系：<input id="baba" type="radio" value="爸爸" <#if phlist.name=="爸爸">checked</#if> name="myrad${phlist_index}">爸爸
					<input id="mama" type="radio" value="妈妈" <#if phlist.name=="妈妈">checked</#if> name="myrad${phlist_index}">妈妈
				<#elseif phlist.guanxi!="">
					&nbsp;关系：<input id="baba" type="radio" value="爸爸" <#if phlist.name=="爸爸">checked</#if> name="myrad${phlist_index}">爸爸
					<input id="mama" type="radio" value="妈妈" <#if phlist.name=="妈妈">checked</#if> name="myrad${phlist_index}">妈妈
					
				<#else>
					&nbsp;关系：<input id="baba" type="radio" value="爸爸" <#if phlist.name=="爸爸">checked</#if> name="myrad${phlist_index}">爸爸
					<input id="mama" type="radio" value="妈妈" <#if phlist.name=="妈妈">checked</#if> name="myrad${phlist_index}">妈妈
					&nbsp;<input id="qita" type="radio" value="其他" checked name="myrad${phlist_index}">其他
					<input id="guanxi" name="guanxi" placeholder="填写关系" size="20" maxlength="100" />
				</p>
				</#if>
				</#list>
				<#else>
				<input id="phone" name="phone"  value="${client.phone}" size="30" maxlength="15" />
				</#if>	
				</td>
			</tr>
			<tr rel="">
				<th>微信号</th>
				<td><input id="weixin" size="50" value="<#if client??>${client.weixin}</#if>"/>
				<p rel="errnote" style="color: #f30;"></p></td>
			</tr>
			<tr rel="">
				<th>QQ</th>
				<td><input id="qq" value="<#if client??>${client.qq}</#if>" />
				<p rel="errnote" style="color: #f30;"></p></td>
			</tr>
			<tr rel="">
				<th>电子邮箱</th>
				<td><input id="email" value="<#if client??>${client.email}</#if>" size="50" />
				<p rel="errnote" style="color: #f30;"></p></td>
			</tr>
			<tr rel="">
				<th>IP地址</th>
				<td><input id="ip" value="<#if client??>${client.ip}</#if>" />
					<p class="caption">商桥中若有IP地址的必须填写，便于推广调整</p></td>
			</tr>
			<tr>
				<th>客户意向</th>
				<td>
				<select id="intention">
					<option value="">--请选择--</option>
                	<option value="A" <#if client.intention == "A" >selected</#if> >A</option>
                	<option value="B" <#if client.intention == "B" >selected</#if> >B</option>
                	<option value="C" <#if client.intention == "C" >selected</#if> >C</option>
                	<option value="D" <#if client.intention == "D" >selected</#if> >D</option>
                </select>
				</td>
			</tr>
			<tr>
				<th>备注信息</th>
				<td><div id="desc" contenteditable="true"><#if client??>${client.descs}</#if></div>
					<p class="line"></p>
					<p class="caption">仅供后台标记、备注相关信息使用（会在查询列表中显示该备注）</p></td>
			</tr>
		</table>
		
		<div id="studentlst">
		<#if stuList??>
			<#list stuList as list>
			<table class="students">
				<tbody>
				<input type="hidden" rel="st_id" value="${list.id}" id="id">
				<tr class="fields">
				<th colspan="2" style="cursor: pointer;"><span rel="title_nickname">${list.nickname}</span><a rel="btnDelete" class="right">[ 删除 ]</a></th>
				</tr>
				<tr class="even_row" style="display: table-row;">
					<th width="25%">姓名</th><td width="75%" style="">
						<input rel="st_type" type="hidden" value="">
						<input rel="st_key" type="hidden">
						<input rel="st_name" value="${list.nickname}"> 
					<select rel="st_sex" id="sex">
						<option value="">性别</option>
						<#if list.sex=="男">
						<option selected>男</option>
						<option>女</option>
						<#elseif list.sex=="女">
						<option >男</option>
						<option selected>女</option>
						<#else>
						<option >男</option>
						<option >女</option>
						</#if>
						
					</select> 
						<input rel="st_age" maxlength="2" size="3" value="${list.age}" placeholder="年龄">岁
					</td>
				</tr>
				<tr class="odd_row" style="display: table-row;">
					<th width="25%">生日日期</th>
					<td width="75%" style="">
						<input type="text" name="st_birthday" id="st_birthday" maxlength="15" size="15" value="${list.birthdays}" rel="DATE::Y-m-d" />  
						<a rel="btnGetAge">[ 计算年龄 ]</a><p class="caption">点击弹出日期选择框顶部可切换月、日、年选择界面</p>
					</td>
				</tr>
				<tr class="even_row" style="display: table-row;">
					<th width="25%">所在学校</th><td width="75%" style="">
					<input rel="st_school" value="${list.school}" placeholder="学校名称" size="50">
					</td>
				</tr>
				<tr class="odd_row" style="display: table-row;">
					<th width="25%">训练类型</th><td width="75%" rel="typelist" style="">
					<label style="margin-right:20px;">
					<input type="checkbox" rel="type_zx" class="${list.type}" value="a" <#if list.type!=null && list.type?contains('a') >checked</#if> >中心训练</label>
					<label style="margin-right:20px;">
					<input type="checkbox" rel="type_jt" value="b" <#if list.type!=null && list.type?contains('b') >checked</#if> >家庭训练</label>
					<label style="margin-right:20px;">
					<input type="checkbox" rel="type_qn" value="c" <#if list.type!=null && list.type?contains('c') >checked</#if> >全脑训练</label>
					<p class="caption">若为“中心、家庭”结合则同时勾选“中心训练、家庭训练”，“全脑训练”只能与“中心训练”同时选择</p>
					</td>
				</tr>
				<tr <#if list.type!=null && list.type?contains('a')>style="display: table-row;"<#else>style="display: none;"</#if> >
					<th width="25%" class="${list.type}">中心训练信息</th>
					<td width="75%" style=""><label>课时数量：</label>
					<input type="text" value="${list.lesson}" rel="st_lesson" placeholder="中心训练课时数量" size="15">
					<label style="margin-left:20px;">学员卡号密码：</label>
					<input type="text" rel="st_card" value="${list.card}" placeholder="学员卡号和密码" size="20">
					<p class="caption">请一定正确填写学员卡号和密码，以“卡号/密码”的格式填写</p></td></tr>
				<tr <#if list.type!=null && list.type?contains('b')>style="display: table-row;"<#else>style="display: none;"</#if> >
					<th width="25%">家庭训练信息</th>
					<td width="75%" style="">
					<label>仪器编号：</label>
					<input type="text" rel="st_serial" value="${list.serial}" placeholder="仪器编号、密码" size="15">
					<label style="margin-left:20px;">训练截止时间：</label>
					<input type="text" rel="st_deadline" value="${list.deadline}" size="15" maxlength="15" readonly="readonly" class="DatePicker_Icon">
					</td>
				</tr>
				<tr class="even_row" style="display: table-row;">
					<th width="25%" style="padding:15px 10px 15px 10px;">学员特征和其它资料<p class="caption">咨询或测评时表现的特征和情况</p></th>
					<td width="75%" style=""><div rel="st_feature" contenteditable="true">${list.feature}</div>
					</td>
				</tr>	
				</tbody>
			</table>
			</#list>
			</#if>
		</div>
		<div id="tralists">
		<table>
			<tbody><tr class="fields">
				<th colspan="4">历史跟踪记录<a id="btnSearchTracking" style="display:initial;">（查询历史跟踪记录）</a>
	<!-- 			<a rel="btnadd" id="btnAddtrack" class="right" style="padding-right:20px">添加客户追踪</a> -->
				</th>
			</tr>
			<#if traList?? >
				<#list traList?sort_by("id") as list>
					<tr class="even_row">
						<td colspan="4" class="trackinglst">
						<ul>
							<li>
							<p class="trackingtitle" style="display: block;">第${list_index+1}次跟踪记录<em class="caption">（负责人：${list.nickname}　日期：${list.createTime}）</em><a class="btnHidden" onclick="btnShow(this)">点击展开</a></p>
							<p class="trackingstate" style="display: none;"><b>客户状态</b>
							<span>
								<#if list.slist??>
									<#list list.slist as stalist>
										<a class="stateitem caption">${stalist.state}</a>
									</#list>
								<#else>
									<a class="stateitem caption"><#if list.state!="">${list.state}<#else>无变化</#if></a>
								</#if>
							</span></p>
							<p style="display: none;"><b>备注情况</b></p>
							<p style="display: none;" id="re"><b>时间提醒</b><input readonly="readonly" style="margin-left:5px;" value="${list.startTime}" class="DatePicker_Icon" type="text" name="remind" id="remind" size="15" value="" rel="DATE::Y-m-d" /></p>
							<div class="content" style="display: none;">${list.remark}</div>
							</li>
							<li style="display:none;">
							</li>
						</ul>
						</td>
					</tr>
				</#list>
			</#if>
		</tbody></table>
		</div>
		<div id="addtrack">
			<table ><tr class="fields">
				<th colspan="2">今日客户跟踪记录（${.now}）</th>
			</tr>
			<tr class="even_row">
				<th width="25%">此次客户状态
					<p class="caption">状态可多选，不选择代表“无变化”</p>
				</th>
				<td width="75%" id="statelist">
					<label for="state_1" title="明确不参加"><input id="state_1" type="checkbox" value="qenzgu6wde3c">不参加</label>
					<label for="state_2" title="有较高意向和兴趣"><input id="state_2" type="checkbox" value="nhb8wyq1nda5">高意向</label>
					<label for="state_3" title="已经发送相关协议"><input id="state_3" type="checkbox" value="qyebkhp2x67y">已发协议</label>
					<label for="state_4" title="计划另行跟踪"><input id="state_4" type="checkbox" onclick="timeout()" value="138g5wfwm1mx">计划跟踪</label>
					<label for="state_5" title="已转交其它老师"><input id="state_5" type="checkbox" onclick="target()" value="o3dpi9gzuol4">已转交</label>
					<label for="state_6" title="已成功预约测评"><input id="state_6" type="checkbox" value="mldqhlrg1sad">已预约</label>
					<label for="state_7" title="已完成测评"><input id="state_7" type="checkbox" value="caoodurhkcl6">已测评</label>
					<label for="state_8" title="已缴费开始训练"><input id="state_8" type="checkbox" value="znouq0wygvbb">已缴费</label>
					<label for="state_9" title="已退费中止训练"><input id="state_9" type="checkbox" value="krm8s91foapx">已退费</label>
					<label for="state_11" title="预约成功的客户未出现"><input id="state_11" type="checkbox" value="n9fjwyx5w74g">未出现</label>
					<label for="state_12" title=""><input id="state_12" type="checkbox" value="n4f79h2giie6">意向一般</label>
					<label for="state_13" title=""><input id="state_13" type="checkbox" value="rym23z0aopkk">一直关机</label>
				</td>
			</tr>
			<tr class="odd1_row" style="display:none;">
				<th width="25%" style="padding: 15px 10px 15px 10px;">定时提醒</th> 
				<td width="75%"><div id="jhtime" contenteditable="true">
				<input type="text" name="pro_time" id="proTime" size="15" value="" rel="DATE::Y-m-d" />
				<p class="caption">需要计划在某日期跟踪时，设置“定时提醒”，当天会有消息提醒！</p></td>
			</tr>
			<tr class="odd2_row" style="display:none;" >
				<th width="25%" style="padding: 15px 10px 15px 10px;">转交目标
				<p class="caption">转交目标必须同样是咨询师</p>
				</th>
				<td width="75%"><div id="lodusername" contenteditable="true">
				<select id="target">
                	<option value="">-- 请选择目标 --</option>
                	<#if uList??>
						<#list uList as list>
                			<option value="${list.username}">${list.nickname}（${list.regions}-${list.departments}-${list.job}）</option>
                		</#list>
                	</#if>
                	<#if uLists??>
						<#list uLists as lists>
                			<option value="${lists.username}">${lists.nickname}（${lists.regions}-${lists.departments}-${lists.job}）</option>
                		</#list>
                	</#if>
                	</select>
                	<input id="username" type="text" value="" placeholder="快速搜索" />
                	
				<p class="caption">成功转交后，你将无法在对该客户进行维护和跟踪，且从你个人客户资源中去除。</p></td>
			</tr>
			<tr class="odd_row">
				<th width="25%" style="padding: 15px 10px 15px 10px;">跟踪情况
					<p class="caption">客户咨询内容摘要，如“咨询问题”等</p>
				</th>
				<td width="75%"><div id="remark" contenteditable="true">无</div></td>
			</tr>
		</table>
		
		</div>
		<div class="remark">
			<ul>
				<li><span class="title">注意事项：</span></li>
				<li>1、咨询过程中可选填客户详细资料，但“客户姓名”务必填写，否则将显示“匿名”</li>
				<li>2、新客户至少需要“电话、QQ、邮箱”中一项联系方式，否则这是无效资源</li>
				<li>3、联系电话最好以手机为准，可以保持更高的准确性、可靠性</li>
				<li>4、客户详细资料填写后，即使隐藏，提交时也会予以保存</li>
				<li>5、学员资料可以填写多个，请点击“增加新的学员”来添加新学员</li>
			</ul>
		</div>
		<div id="controlbar">
			<input id="btnSubmit" type="button" class="submit" value="保存客户咨询记录  " /> 
			<input id="btnAddStudent" class="${type}" <#if type==1>style="display:none;"</#if> type="button" value="增加新的学员  " />
			<input id="btnCancel" type="button" class="submit" <#if type==1>style="display:none;"</#if> value="  返回列表  " onclick="history.back();"/>
		</div>
	</div>
</body>
</html>